import cv2
img=cv2.imread('c:/yuan.jpg')
print('img.shape:',img.shape)
rows=img.shape[0]
cols=img.shape[1]
channel=img.shape[2]
print('rows=%d,cols=%d,channel=%d'%(rows,cols,channel))
print("size=",img.size)
print("dtype=",img.dtype)